package cn.kgc.spring.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author: mosin
 * @version: v1.0  2022/7/1
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Component
public class User {
    @Value("tom")
    private  String username;
    @Value("12345")
    private String password;
}
